﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SmartSpace.UI.AspDotNet;
using SmartSpace.Core;

namespace Themes.AspDotNet.Cwt
{
    public partial class HeaderPanel : System.Web.UI.UserControl, IHeaderPanel
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public void Initiate(IEnumerable<Shortcut> shortcuts, List<Application> applications, Application currentApplication, User loginUser)
        {
            _ctlLabelTitle.Text = currentApplication.Name;
        }

        protected void OnButtonLogoffClick(object sender, EventArgs e)
        {
            Response.Redirect("~/_logoff.aspx");
        }
    }
}